package com.mohe.shanpao.netty;

public class Message {
	private String value;
	private long timestamp;
	
	public Message()
	{
		this.timestamp = System.currentTimeMillis() / 1000L;
	}
	
	public Message(String v,long ts)
	{
		this.timestamp = ts;
		this.value = v;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	public long getTimestamp() {
		return timestamp;
	}

	public void setTimestamp(long timestamp) {
		this.timestamp = timestamp;
	}
}
